<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="width=device-width, initial-scale=1.0">
<title>管理员信息管理</title>
</head>

<body>
	<?php  include 'action/session_check.php'; //登录判断  ?>  
	<form action="" method="post">
<table>
<tr>
<td colspan="8" class="">管理员信息管理</td></tr>
<tr class="">
  <td>编号</td>
<td>用户名</td>
<td>密码</td>
<td>联系电话</td>
  <td>邮箱</td>
<td>头像</td>
<td colspan="2">操作</td>
</tr>
<?php   
  require_once("../conn/conn_db.php");   //链接数据库
  $sql = "select * from  admin_info order by a_id"; //查询语句
  $result = $conn->query($sql);                 //执行SQL语句
  //遍历查询结果的每一行
  if ($result->num_rows > 0) {
      while($row = $result->fetch_array()){
?>          
    <tr class="tr_content">
    <td> <?php echo $row['a_id']; ?> </td>  
    <td> <?php echo $row['a_name']; ?></td>
    <td> <?php echo $row['a_pwd']; ?></td>
    <td> <?php echo $row['a_tel']; ?></td>
    <td> <?php echo $row['a_email']; ?></td>
    <td> <img src='../<?php echo $row['a_header'];?>' width="58px" height="58px"> </td>
    <td><a  href="admin_update.php?a_id=<?php echo $row['a_id'];?>">修改</a></td>
    <td><a  href="action/admin_delete_do.php?a_id=<?php echo $row['a_id'];?>">删除</a></td>
 </tr>
<?php 
}
 } 
?>
</table>
 </form>	
</body>
</html>